from rest_framework.viewsets import ModelViewSet
from meiduo_admin.my_pagination import MyPageNumberPagination
from . import permission_serializers
from django.contrib.auth.models import Permission

#1, permission 管理
class PermissionModelViewSet(ModelViewSet):
    pagination_class = MyPageNumberPagination
    serializer_class = permission_serializers.PermissionSerializers
    queryset = Permission.objects.all()